home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinXP UnPnP.xpl < prev    next >
Text File  |  2004-03-01  |  2KB  |  64 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH 1"="Network\Security\Universal Plug&Play"
  5. "UIPATH 2"="System\Security\Services"
  6. "UIPATH 3"="Virtual Paranoia\Security related"
  7. "NAME"="Universal Plug&Play Services"
  8. "VERSION"="1.03"
  9. "OSVERSION"="0000011"
  10. "LANGUAGE"="VBScript"
  11. "TEXT 1"="Enable SSDP UnPnP Service"
  12. "TEXT 2"="Enable UnPnP Host Service"
  13. "DESCRIPTION 1"="By default, Windows XP support a service known as "Universal Plug&Play" (UnPnP in short). This service is intend to support self-connecting and self-configurating devices that communicate using standard LAN protocols. However, today there are no UnPnP devices available so these services are not needed."
  14. "DESCRIPTION 2"="And, to make UnPnP even more unneeded, the first release of Windows XP had a BIG problem with the UnPnP services since they allowed an intruder to take over your machine. NOTE: Microsoft has released an security-fix for this in the meantime."
  15. "DESCRIPTION 3"="To make it short: You don't need those services and they are a security risk - Simply deactivate them. If you ever decide you need them, you can activate them here again."
  16. "DESCRIPTION 4"="For more information about UnPnP, check our Gibson Research Corp. at http://grc.com/UnPnP/UnPnP.htm"
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="F*** stupid UnPnP!!!! "
  21.  
  22.  
  23.  
  24. sP1="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SSDPSRV\Start"
  25. sP2="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\upnphost\Start"
  26.  
  27. Sub Plugin_Initialize 
  28.  i=RegReadValue(sP1)
  29.  if i<>4 then SetUIElement 1,true
  30.  
  31.  i=RegReadValue(sP2)
  32.  if i<>4 then SetUIElement 2,true
  33. End Sub
  34.  
  35.  
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  b=GetUIElement(1)
  39.  Call ae(b,sP1)
  40.  
  41.  b=GetUIElement(2)
  42.  Call ae(b,sP2)
  43.  
  44.  Restart
  45. End Sub
  46.  
  47.  
  48. Sub ae(val,Path)
  49.  if val=true then
  50.     Call RegWriteValue(path,3,2)
  51.  else
  52.     Call RegWriteValue(path,4,2)
  53.  end if
  54. end Sub
  55.  
  56.  
  57.  
  58.  
  59. Sub Plugin_Terminate 
  60. End Sub
  61.  
  62.  
  63.  
  64.